const getters = {
  // 导出app模块的属性
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name
}

// getters的作用是便捷访问state中的数据
export default getters
